package com.hxkj.client.service;

import com.hxkj.domain.po.Manuscript;
import com.platform.common.domain.result.ResultDataStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;


/**
 * @author zzx
 * @create 2018年6月21日10:10:43
 * @desc 查询静态文件记录
 **/
@FeignClient(name = "cms-article")
public interface ManuscriptServiceClient {
    /**
     *获取一条静态文件记录（ 首页 或者 频道）
     *
     * @param
     * @throws Exception
     */
    @RequestMapping(value = "/manuscript/get", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    ResultDataStruct<Manuscript> getManuscript(@RequestBody Manuscript manuscript) throws Exception;


    /**
     *保存或修改稿件表
     *
     * @param
     * @throws Exception
     */
    @RequestMapping(value = "/manuscript/saveOrUpdate", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    void saveOrUpdate(@RequestBody Manuscript manuscript) throws Exception;


    /**
     *保存或修改稿件表
     *
     * @param
     * @throws Exception
     */
    @RequestMapping(value = "/manuscript/getMaxSeqNum", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    Integer getMaxSeqNum() throws Exception;

    /**
     *删除稿件表
     *
     * @param
     * @throws Exception
     */
    @RequestMapping(value = "/manuscript/deleteManuscript", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    void deleteManuscript(@RequestBody Long manuscriptId) throws Exception;


    /**
     *删除稿件表
     *
     * @param
     * @throws Exception
     */
    @RequestMapping(value = "/manuscript/getManuscriptList", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    List<Manuscript> getManuscriptList(@RequestBody Manuscript manuscript) throws Exception;


}
